package Dome5;

import java.util.ArrayList;

public class Text5 {
    public static void func(String s1,String s2){
        ArrayList<Character> array = new ArrayList<>();
        for (int i = 0; i < s1.length(); i++) {
            char ch=s1.charAt(i);
            if(!s2.contains(ch+"")){
                array.add(ch);
            }
        }

        for (int i = 0; i <array.size() ; i++) {
            System.out.print(array.get(i));
        }
    }
    public static void main(String[] args) {
      func("wanghui","wohe ");
    }
}
